home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GAS_1_38.ARJ / I860.H < prev    next >
C/C++ Source or Header  |  1990-10-11  |  2KB  |  49 lines

  1. /* i860.h -- Header file for the I860
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4. This file is part of GAS, the GNU Assembler.
  5.  
  6. GAS is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GAS is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GAS; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. enum reloc_type /* NOTE: three bits max, see struct reloc_info_i860.r_type */
  21. {
  22.     NO_RELOC = 0, BRADDR, LOW0, LOW1, LOW2, LOW3, LOW4, SPLIT0, SPLIT1, SPLIT2, RELOC_32,
  23. };
  24.       
  25. enum highlow_type       /* NOTE: two bits max, see reloc_info_i860.r_type */
  26. {
  27.     NO_SPEC = 0, PAIR, HIGH, HIGHADJ,
  28. };
  29.        
  30. struct reloc_info_i860
  31. {
  32.     unsigned long int r_address;
  33. /*
  34.  * Using bit fields here is a bad idea because the order is not portable. :-(
  35.  */
  36.     unsigned int r_symbolnum: 24;
  37.     unsigned int r_pcrel    : 1;
  38.     unsigned int r_extern   : 1;
  39.     /* combining the two field simplifies the argument passing in "new_fix()" */
  40.     /* and is compatible with the existing Sparc #ifdef's */
  41.     /* r_type:  highlow_type - bits 5,4; reloc_type - bits 3-0 */
  42.     unsigned int r_type     : 6;
  43.     long int r_addend;
  44. };
  45.  
  46. #define relocation_info reloc_info_i860
  47.  
  48.  
  49.